package com.chatroom.service;

import com.chatroom.model.ChatRoom;
import com.chatroom.model.Message;
import com.chatroom.model.User;

import java.util.List;

public interface MessageService {
    Message savePrivateMessage(String content, User sender, User receiver);
    Message saveGroupMessage(String content, User sender, ChatRoom chatRoom);
    List<Message> getPrivateMessages(User user1, User user2);
    List<Message> getChatRoomMessages(ChatRoom chatRoom);
} 